import request from '../utils/request'

//添加轮播图片，链接
export function addCarousel(form){
    return request.post(`/carouselpictures`,form,{"Content-Type":" multipart/form-data"})
}

//获取所有的轮播图
export function getAllPicture(){
    return request.get(`/carouselpictures/lbt`)
}
//修改轮播图
export function editCarPicture(id,data){
    return request.put(`/carouselpictures/editcar/${id}`,data)
}
//是否启用轮播图
export function IsEnableCarPicture(id,data){
    return request.post(`/carouselpictures/isenablepic/${id}`,data)
}
//删除轮播图
export function deleteCarpicture(id){
    return request.post(`/carouselpictures/deletepic/${id}`)
}